package cn.com.aiton.common.model.gps;

import cn.com.aiton.common.model.BaseDomain;

import java.util.Date;

/**
 * GPS数据对象
 * 用于记录警卫任务车辆轨迹
 * 在GIS上进行绘制轨迹
 */
public class GpsDomain extends BaseDomain {
    // 警卫任务用户表，外键
    private Long userId;
    // 经度
    private Double longitude;
    // 纬度
    private Double latitude;
    //车辆速度
    private String speed;
    //方向
    private String direction;
    //当前地址
    private String address;
    //当前时间
    private Date times;

    public GpsDomain() {
    }

    public GpsDomain(Long id, Long userId, Double longitude, Double latitude, String speed, String direction, String address, Date times) {

        this.userId = userId;
        this.longitude = longitude;
        this.latitude = latitude;
        this.speed = speed;
        this.direction = direction;
        this.address = address;
        this.times = times;
    }

    @Override
    public String toString() {
        return "GpsDomain{" +
                "userId=" + userId +
                ", longitude=" + longitude +
                ", latitude=" + latitude +
                ", speed='" + speed + '\'' +
                ", direction='" + direction + '\'' +
                ", address='" + address + '\'' +
                ", times=" + times +
                '}';
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Double getLongitude() {
        return longitude;
    }

    public void setLongitude(Double longitude) {
        this.longitude = longitude;
    }

    public Double getLatitude() {
        return latitude;
    }

    public void setLatitude(Double latitude) {
        this.latitude = latitude;
    }

    public String getSpeed() {
        return speed;
    }

    public void setSpeed(String speed) {
        this.speed = speed;
    }

    public String getDirection() {
        return direction;
    }

    public void setDirection(String direction) {
        this.direction = direction;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Date getTimes() {
        return times;
    }

    public void setTimes(Date times) {
        this.times = times;
    }
}
